
<%--
    Document   : rptAsistencia_Alumno
    Created on : 10/11/2008, 07:41:17 PM
    Author     : Lizardo Rios Villavicencio
--%>
<%@ page import="java.util.ArrayList, org.me.codigo.Matematico, org.me.codigo.Baldor" %>
<%@ page errorPage="../../../../../error.jsp?from=rptrptPagosDeudas.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="agb.Modelo.Promedios"%>
<%@ page import="agb.Modelo.Utilidades"%>
<%@ page import="java.text.DecimalFormat"%>
<%@ page import="java.text.DecimalFormatSymbols"%>

<%@ page import="java.util.Vector"%>
<%@page session="true" %>
<!--  pageEncoding="ISO8859-1"  -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <%
            String bgColor = "7893C1";
            String colorResaltado = "FFFFFF";
        int cod = (Integer)session.getAttribute("codPersona");
        Vector<Promedios> Notas = new Vector<Promedios>();
        Notas = (Vector<Promedios>)session.getAttribute("notas");          
        Utilidades oUtilidad = new Utilidades();
        oUtilidad =  Utilidades.GradoSeccionAlumno(cod);
        DecimalFormatSymbols dformater_rules = new DecimalFormatSymbols ();
        dformater_rules.setDecimalSeparator ('.');
        DecimalFormat df = new DecimalFormat("0.00", dformater_rules);
        df.setMaximumFractionDigits(2);
         Promedios cabecera = new Promedios();
         cabecera = (Promedios)session.getAttribute("cabecera");
          

        %>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <link href="/SistemaWebAGB_2.0/dinamica/css/admin_1.css" rel="stylesheet" type="text/css" />
        <link href="/SistemaWebAGB_2.0/dinamica/css/alumno.css" rel="stylesheet" type="text/css" />
		<link href="/SistemaWebAGB_2.0/dinamica/css/style.css" rel="stylesheet" type="text/css" />
        
        <title>Reporte Horario Por Profesor</title>

        <script language="JavaScript">
             function imprimir() {
                window.parent.frames[5].focus();
                window.print();
            }
        </script>
        <style type="text/css">
            TABLE {
                /*padding:2px;*/
                /*border-color:#0A01F9; */
            }
            TH { border-color:#435C9F; }
            TR { border-color:#435C9F; }
            TD { border-color:#435C9F; }
        </style>
    </head>

    <body>
        <input type=button value="Imprimir" onClick="imprimir()" />
        <br/><br/>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td rowspan="2" align="center"><img src="dinamica/img/logo.jpg" width="50" height="50"></td>
                <td align="center" valign="bottom"><font face="arial" size="5"><b>I.E. ALEXANDER GRAHAM BELL</b></font></td>
            </tr>
            <tr>
                <td align="center" valign="top"><font face="arial" size="4"><b>Reporte de Notas de Alumno</b></font></td>
            </tr>
        </table>
        <br/>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>&nbsp;</td>
                <td colspan="2" valign="top">
        <table table width="85%"  cellpadding="2" cellspacing="0"  id="tabla" align="center">
 <tr>
   <td align="center" colspan="3" CLASS="titulo">Nombre:</td>
   <td align="center" colspan="3" CLASS="contenido">${requestScope.nombre}</td>
 </tr>
 <tr>
                               <td width="15%" align="center" colspan="3" CLASS="titulo">Nivel: &nbsp;   </td>

                                <td width="15%" align="center" colspan="3" CLASS="contenido"><%=oUtilidad.getNivel() %>&nbsp;   </td>

                            </tr>

                            <tr class="contenido">
                               <td width="15%" align="center" CLASS="titulo">Grado: &nbsp;   </td>
                                <td width="15%" align="center" CLASS="txtBase"> <%=oUtilidad.getGrado() %>&nbsp;   </td>
                                <td width="15%" align="center" CLASS="titulo">Secci&oacute;n&nbsp;   </td>
                                <td width="15%" align="center" CLASS="txtBase"> <%=oUtilidad.getSeccion() %>&nbsp;   </td>
                                <td width="15%" align="center" CLASS="titulo">A&ntilde;o: &nbsp;   </td>
                                <td width="15%" align="center" CLASS="txtBase"> <%=oUtilidad.getAnioMatriculas() %>&nbsp;   </td>
                            </tr>



                    </table>
                </td>
            </tr>
            <tr>
                <td height="1">&nbsp;</td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <!--td width="1%">&nbsp;</td-->
                <td width="96%" height="80" valign="top">
                    <table width="85%" cellpadding="2" cellspacing="0" id="box-table-a" align="center">
                        <th width="30%"   class="txtTitAzul"><div align="center">Curso</div></th>
                        <th  bgcolor="#<%=bgColor%>"  class="txtTitAzul"><div align="center">Mes <%=(int)cabecera.getNota1()%></div></th>
                        <th  bgcolor="#<%=bgColor%>"  class="txtTitAzul"><div align="center">Mes <%=(int)cabecera.getNota2() %></div></th>
                        <th  bgcolor="#<%=bgColor%>"  class="txtTitAzul"><div align="center">Mes <%=(int)cabecera.getNota3() %></div></th>                        
                        <th  bgcolor="#<%=bgColor%>"  class="txtTitAzul"><div align="center">Examen Trimestral</div></th>
                        <th  bgcolor="#<%=bgColor%>"  class="txtTitAzul"><div align="center">Promedio Trimestre <%=(int)cabecera.getMensual() %></div></th>
                        <%  if (Notas != null) {
                           
                                    for (Promedios o: Notas) {                                
                                             colorResaltado = "111188";
                                                                          %>
                        <tr >
                            <font >
                                <td align="left" CLASS="txtBase" ><b><%=o.getCurso()%> </b></td> 
                                <td align="left" CLASS="txtBase" ><b><%if (o.getMes1() == 0.0) {
                                            out.println("--");
                                        } else {
                                            if(o.getMes1()<11)
                                                colorResaltado = "881111";
                                            out.println("<div style=color:" + colorResaltado + ">" + df.format(o.getMes1()) + "</div>");
                                            colorResaltado = "111188";
                                        }%></b></td>      <!-- Detalle -->
                                <td align="left" CLASS="txtBase" ><b><%if (o.getMes2() == 0.0) {
                                            out.println("--");
                                        } else {
                                           if(o.getMes2()<11)
                                                colorResaltado = "881111";
                                            out.println("<div style=color:" + colorResaltado + ">" + df.format(o.getMes2()) + "</div>");
                                            colorResaltado = "111188";
                                        }%></b></td>      <!-- Estado -->
                                <td align="center" CLASS="txtBase" ><b><%if (o.getMes3() == 0.0) {
                                            out.println("--");
                                        } else {
                                           if(o.getMes3()<11)
                                                colorResaltado = "881111";
                                            out.println("<div style=color:" + colorResaltado + ">" + df.format(o.getMes3()) + "</div>");
                                            colorResaltado = "111188";
                                        }%></b></td>      <!-- Fecha Vcto -->
                                <td align="center" CLASS="txtBase" ><b><%if (o.getNotaTrimestral() == 0.0) {
                                            out.println("--");
                                        } else {
                                            if(o.getNotaTrimestral()<11)
                                                colorResaltado = "881111";
                                            out.println("<div style=color:" + colorResaltado + ">" + df.format(o.getNotaTrimestral()) + "</div>");
                                            colorResaltado = "111188";
                                        }%></b></td>      <!-- Fecha Pago -->
                                
                                <td align="right" CLASS="txtBase" ><b><%if (o.getPromedioTrimestral() == 0.0) {
                                            out.println("--");
                                        } else {
                                            if(o.getPromedioTrimestral()<11)
                                                colorResaltado = "881111";
                                            out.println("<div style=color:" + colorResaltado + ">" + df.format(o.getPromedioTrimestral()) + "</div>");
                                            colorResaltado = "111188";
                                        }%></b></td>      <!-- Importe (S/.) -->                               
                            </font>                        </tr>
                            <%      }
                                }       %>
                    </table>
                </td>
            </tr>
            <!--tr><td height="1">&nbsp;</td></tr-->
        </table>
      
                                                                


                
           
        <br>
        
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
           
            <tr>
                <td width="8%">&nbsp;</td>
                <td width="92%"><a style="font-size:11px" href="javascript:window.history.back()">Retornar</a></td>
            </tr>
        </table>
    </body>
</html>
